package leetcode.code2011;

import leetcode.helper.MaxDebug;

public class Solution extends Solution2011 {

	@Override
	public int finalValueAfterOperations(String[] operations) {
		int ans = 0;
		for(String str : operations) {
			if(str.charAt(1)=='+')
				ans++;
			else
				ans--;
		}
		return ans;
	}

	public static void main(String[] args) {
		MaxDebug.debug14(new Solution());
	}

}
